//
//  AsyncSocketManager.h
//  高仿暴走斗图
//
//  Created by huangsongyao on 16/3/4.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AsyncSocket.h"

@class HSYSocketDataJSONModel;
@interface AsyncSocketManager : NSObject

@property (nonatomic, strong) RACSubject *subject;

+ (instancetype)shareInstance;

- (RACSignal *)connectServer;
/**
 *  发送心跳包
 *
 *  @param jsonModel 心跳包数据类型
 *
 *  @return rac 信号源
 */
- (RACSignal *)sendHeartbeatToSocketServerWithJSONModel:(HSYSocketDataJSONModel *)jsonModel;

@end
